class User {
  constructor() {
    document.getElementById("login").onclick = () => this.login();
  }
  login() {
    let username = document.getElementById("username").value;
    let password = document.getElementById("password").value;

    Request.post("/admin/user/getUserInfo", { id: 1 }).then((res) => {
      console.log(res);
    });

    Request.post("/admin/user/login", { username, password }).then((res) => {
      console.log(res);
    });
  }
}
new User();
